package cn.yunhe.model.computer;

import cn.yunhe.model.computer.displayer.Displayer;
import cn.yunhe.model.computer.harddisk.HardDisk;
import cn.yunhe.model.computer.power.Power;

public class Computer {
    private HardDisk hardDisk;
    private Displayer displayer;
    private Power power;

    public void showComputerInfo(){
        System.out.println("电脑信息: ");
    }

    public Computer() {
    }

    public Computer(HardDisk hardDisk) {
        this.hardDisk = hardDisk;
    }

    public Computer(HardDisk hardDisk, Displayer displayer, Power power) {
        this.hardDisk = hardDisk;
        this.displayer = displayer;
        this.power = power;
    }

    public HardDisk getHardDisk() {
        return hardDisk;
    }

    public void setHardDisk(HardDisk hardDisk) {
        this.hardDisk = hardDisk;
    }

    public Displayer getDisplayer() {
        return displayer;
    }

    public void setDisplayer(Displayer displayer) {
        this.displayer = displayer;
    }

    public Power getPower() {
        return power;
    }

    public void setPower(Power power) {
        this.power = power;
    }
}
